﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using Microsoft.EntityFrameworkCore;

namespace TyMES.Model.Record
{
    [Table("T_SkipOperations")]

    [Display(Name = "跳站记录")]
    public class SkipOperations : BasePoco
    {
        [Display(Name = "SN")]
        public string Snnumber { get; set; }
        [Display(Name = "工序编码")]
        public string OperationCode { get; set; }
        [Display(Name = "工序ID")]
        public string OperationId { get; set; }
        [Display(Name = "工序名称")]
        public string OperationName { get; set; }
        [Display(Name = "工单编号")]
        public string OrderCode { get; set; }
        [Display(Name = "工单ID")]
        public string OrderId { get; set; }
        [Display(Name = "是否跳站")]
        public bool IsSkip { get; set; } = true;
        [Display(Name = "添加时间")]
        public DateTime? AddTime { get; set; }
        [Display(Name = "编辑时间")]
        public DateTime? EditTime { get; set; }
        [Display(Name = "前工序编码")]
        public string LastOperationCode { get; set; }
        [Display(Name = "产线编码")]
        public string LineCode { get; set; }
        [Display(Name = "下一个节点")]
        public string NextNode { get; set; }
        [Display(Name = "后工序编码")]
        public string NextOperationCode { get; set; }
        [Display(Name = "后工序ID")]
        public string NextOperationId { get; set; }
        
        [Display(Name = "父工序编码")]
        public string ParentOperationCode { get; set; }
        [Display(Name = "父工序ID")]
        public string ParentOperationId { get; set; }
        [Display(Name = "工艺路线名称")]
        public string RouteName { get; set; }
        [Display(Name = "工艺路线编号")]
        public string RouteNumber { get; set; }
        [Display(Name = "工艺路线版本")]
        public string RouteVersion { get; set; }
        [Display(Name = "排程编号")]
        public string ScheduleNumber { get; set; }
        [Display(Name = "排序")]
        public string Sort { get; set; }
        [Display(Name = "是否有效")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public bool IsValid { get; set; } = true;
        

    }
}
